package StringJoiner;

import java.util.StringJoiner;

/**
 * ClassName:StringJoinerText001
 * Package:StringJoiner
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/16-19:24
 * @Version:v1.0
 */
public class StringJoinerText001 {
    public static void main(String[] args) {
        //StringJoiner(间隔符号,开始符号,结束符号);
        //StringJoiner(间隔符号);
        //创建一个对象,并指定中间的间隔符号
        StringJoiner sj = new StringJoiner("---");
        sj.add("aaa").add("bbb").add("ccc");
        System.out.println(sj);
    }
}
